// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PUR_RL_APPI_POI
// * CreateDate    : 2014-06-05 18:30:27
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:27
// * LastChanger   : 2014-06-05 18:30:27
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class PurRlAppiPoiEntity : EntityBase
    {
        public PurRlAppiPoiTable TableSchema
        {
            get
            {
                return PurRlAppiPoiTable.Current;
            }
		}
		
		public PurRlAppiPoiEntity()
        {

        }
		
		public PurRlAppiPoiEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.PurAppiId = Convert.ToString(CommonFunctions.ToObject(dr["PUR_APPI_ID"]));
			this.PurPoiId = Convert.ToString(CommonFunctions.ToObject(dr["PUR_POI_ID"]));
        }
		
		public PurRlAppiPoiEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.PurAppiId = Convert.ToString(CommonFunctions.ToObject(dr["PUR_APPI_ID"]));
			this.PurPoiId = Convert.ToString(CommonFunctions.ToObject(dr["PUR_POI_ID"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return PurRlAppiPoiTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string PurAppiId
        {
            get { return Convert.ToString(GetData(PurRlAppiPoiTable.C_PUR_APPI_ID)); }
            set { SetData(PurRlAppiPoiTable.C_PUR_APPI_ID, value); }
        }
		
        [DataMember]
        public string PurPoiId
        {
            get { return Convert.ToString(GetData(PurRlAppiPoiTable.C_PUR_POI_ID)); }
            set { SetData(PurRlAppiPoiTable.C_PUR_POI_ID, value); }
        }
		
		#endregion
	}
	
	
}	

